package com.planw.beetl.sql.language;

import com.intellij.openapi.fileTypes.LanguageFileType;
import com.planw.beetl.utils.ContextIcons;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public class BeetlSqlLanguageFileType extends LanguageFileType {

    private static final BeetlSqlLanguage BEETL_SQL_LANGUAGE = new BeetlSqlLanguage();

    protected BeetlSqlLanguageFileType() {
        super(BEETL_SQL_LANGUAGE);
    }

    @NotNull
    @Override
    public String getName() {
        return "beetlSql";
    }

    @NotNull
    @Override
    public String getDescription() {
        return "BEETL_SQL";
    }

    // btsql;md;sql 定义文件后缀的支持md
    @NotNull
    @Override
    public String getDefaultExtension() {
        return "btsql";
    }

    @Nullable
    @Override
    public Icon getIcon() {
        return ContextIcons.BEETL_LANGUAGE;
    }
}
